package com.houseman.workFlow.processer.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.houseman.workFlow.dao.RoleDao;
import com.houseman.workFlow.dao.impl.RoleDaoImpl;
import com.houseman.workFlow.processer.Processer;

/**
 * 请求流程设计器页面
 */
public class DesignerProcesser extends Processer{

	@Override
	public void proccess(HttpServletRequest request, HttpServletResponse response) {
		RoleDao dao = new RoleDaoImpl();
		try {
			request.setAttribute("roles", dao.queryRoles());
			request.getRequestDispatcher("/WEB-INF/workFlow/page/designer.jsp").forward(request, response);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}

}
